package putao.blocksgame
{
	import flash.events.EventDispatcher;

	public class BlocksGameEngine extends EventDispatcher
	{
		private static var _instance:BlocksGameEngine;
		
		private var _size:Number = 32;
		
		public function BlocksGameEngine(inside:Inside)
		{
			
		}
		
		public static function getInstance():BlocksGameEngine
		{
			if(_instance == null){
				_instance = new BlocksGameEngine(new Inside());
			}
			return _instance;
		}
		
		public function setBlockSize(value:Number):void
		{
			_size = value;
		}
		
		/**
		 * 设置每个区块的宽度，默认值为32 
		 */	
		public function getBlockSize():Number
		{
			return _size;
		}
	}
}class Inside{}